import { Component,OnInit } from '@angular/core';
import { NavController } from 'ionic-angular';

import { CesiumDemo } from './cesium';


@Component({
  selector: 'page-home',
  templateUrl: 'home.html'
})
export class HomePage implements OnInit {
  demo:CesiumDemo;
  constructor(public navCtrl: NavController)  {

  }

  ngOnInit(){

      this.demo= new CesiumDemo();
      this.demo.start();
      this.demo.initEvent();
  }


  setView(lon: number, lat: number, height: number, heading: number, pitch: number, roll: number)
  {
    this.demo.setView(lon,lat,height,heading,pitch,roll);
  }





}
